package com.dtkeys.licenses.repository;

import com.dtkeys.licenses.model.License;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by Administrator on 2020/5/19.
 */

@Repository
public interface LicenseRepository extends CrudRepository<License, String>{
    public List<License> findByOrganizationId(String organizationId);
    public License findByOrganizationIdAndLicenseId(String organizationId,String licenseId);

}
